#ifndef RSUTRANSGETVEHINFO_H
#define RSUTRANSGETVEHINFO_H

#include <QObject>
#include "rsutransmgr.h"

class RsuTransGetVehInfo: public RsuTransMgr
{
    Q_OBJECT

    enum TRANS_STEP {
        TS_INIT_OBU,            // 唤醒OBU
        TS_GET_SECURE,          // 读取车辆信息文件
        TS_DICIPHER_VEHINFO,    // 解密车辆信息文件
        TS_WAIT_INSTRUCTION
    };

public:
    explicit RsuTransGetVehInfo(RsuCtrl *pRsuCtrl, QObject *parent = 0): RsuTransMgr(pRsuCtrl, parent)
    {
    }

    void start();
    void processRsuFrame(quint8 nFrameIndex, quint8 nFrameType, const QByteArray &frame);

protected slots:
    void transTimeout()
    {
        start();
    }
};

#endif // RSUTRANSGETVEHINFO_H
